package cn.codeforfun.mq;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * Created by Administrator on 2017/2/26.
 */
@Component
public class Receiver {
  @RabbitListener(queues = "amqpTestQueue")
  public void receiver(String content) {
    System.out.println(content);
  }
}
